﻿


using System;
using System.ComponentModel;
using System.Linq;

namespace CSC440TeamOne.CSC440BusinessService.SubSonic
{
    
    
    
    
    /// <summary>
    /// A class which represents the Question table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.Question 
    /// </summary>

	public partial class Question: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public Question(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnQuestionIDChanging(int value);
        partial void OnQuestionIDChanged();
		
		private int _QuestionID;
		public int QuestionID { 
		    get{
		        return _QuestionID;
		    } 
		    set{
		        this.OnQuestionIDChanging(value);
                this.SendPropertyChanging();
                this._QuestionID = value;
                this.SendPropertyChanged("QuestionID");
                this.OnQuestionIDChanged();
		    }
		}
		
        partial void OnPageIDChanging(int? value);
        partial void OnPageIDChanged();
		
		private int? _PageID;
		public int? PageID { 
		    get{
		        return _PageID;
		    } 
		    set{
		        this.OnPageIDChanging(value);
                this.SendPropertyChanging();
                this._PageID = value;
                this.SendPropertyChanged("PageID");
                this.OnPageIDChanged();
		    }
		}
		
        partial void OnQuestionTextChanging(string value);
        partial void OnQuestionTextChanged();
		
		private string _QuestionText;
		public string QuestionText { 
		    get{
		        return _QuestionText;
		    } 
		    set{
		        this.OnQuestionTextChanging(value);
                this.SendPropertyChanging();
                this._QuestionText = value;
                this.SendPropertyChanged("QuestionText");
                this.OnQuestionTextChanged();
		    }
		}
		
        partial void OnAnsweredChanging(bool? value);
        partial void OnAnsweredChanged();
		
		private bool? _Answered;
		public bool? Answered { 
		    get{
		        return _Answered;
		    } 
		    set{
		        this.OnAnsweredChanging(value);
                this.SendPropertyChanging();
                this._Answered = value;
                this.SendPropertyChanged("Answered");
                this.OnAnsweredChanged();
		    }
		}
		
        partial void OnAnswerTextChanging(string value);
        partial void OnAnswerTextChanged();
		
		private string _AnswerText;
		public string AnswerText { 
		    get{
		        return _AnswerText;
		    } 
		    set{
		        this.OnAnswerTextChanging(value);
                this.SendPropertyChanging();
                this._AnswerText = value;
                this.SendPropertyChanged("AnswerText");
                this.OnAnswerTextChanged();
		    }
		}
		
        partial void OnAnswerControlTypeIDChanging(int value);
        partial void OnAnswerControlTypeIDChanged();
		
		private int _AnswerControlTypeID;
		public int AnswerControlTypeID { 
		    get{
		        return _AnswerControlTypeID;
		    } 
		    set{
		        this.OnAnswerControlTypeIDChanging(value);
                this.SendPropertyChanging();
                this._AnswerControlTypeID = value;
                this.SendPropertyChanged("AnswerControlTypeID");
                this.OnAnswerControlTypeIDChanged();
		    }
		}
		
        partial void OnParentQuestionIDChanging(int? value);
        partial void OnParentQuestionIDChanged();
		
		private int? _ParentQuestionID;
		public int? ParentQuestionID { 
		    get{
		        return _ParentQuestionID;
		    } 
		    set{
		        this.OnParentQuestionIDChanging(value);
                this.SendPropertyChanging();
                this._ParentQuestionID = value;
                this.SendPropertyChanged("ParentQuestionID");
                this.OnParentQuestionIDChanged();
		    }
		}
		
        partial void OnHelpTextIDChanging(int? value);
        partial void OnHelpTextIDChanged();
		
		private int? _HelpTextID;
		public int? HelpTextID { 
		    get{
		        return _HelpTextID;
		    } 
		    set{
		        this.OnHelpTextIDChanging(value);
                this.SendPropertyChanging();
                this._HelpTextID = value;
                this.SendPropertyChanged("HelpTextID");
                this.OnHelpTextIDChanged();
		    }
		}
		
        partial void OnRegExValidationChanging(string value);
        partial void OnRegExValidationChanged();
		
		private string _RegExValidation;
		public string RegExValidation { 
		    get{
		        return _RegExValidation;
		    } 
		    set{
		        this.OnRegExValidationChanging(value);
                this.SendPropertyChanging();
                this._RegExValidation = value;
                this.SendPropertyChanged("RegExValidation");
                this.OnRegExValidationChanged();
		    }
		}
		
        partial void OnRegExMessageChanging(string value);
        partial void OnRegExMessageChanged();
		
		private string _RegExMessage;
		public string RegExMessage { 
		    get{
		        return _RegExMessage;
		    } 
		    set{
		        this.OnRegExMessageChanging(value);
                this.SendPropertyChanging();
                this._RegExMessage = value;
                this.SendPropertyChanged("RegExMessage");
                this.OnRegExMessageChanged();
		    }
		}
		
        partial void OnRequiredChanging(bool? value);
        partial void OnRequiredChanged();
		
		private bool? _Required;
		public bool? Required { 
		    get{
		        return _Required;
		    } 
		    set{
		        this.OnRequiredChanging(value);
                this.SendPropertyChanging();
                this._Required = value;
                this.SendPropertyChanged("Required");
                this.OnRequiredChanged();
		    }
		}
		
        partial void OnRequiredMessageChanging(string value);
        partial void OnRequiredMessageChanged();
		
		private string _RequiredMessage;
		public string RequiredMessage { 
		    get{
		        return _RequiredMessage;
		    } 
		    set{
		        this.OnRequiredMessageChanging(value);
                this.SendPropertyChanging();
                this._RequiredMessage = value;
                this.SendPropertyChanged("RequiredMessage");
                this.OnRequiredMessageChanged();
		    }
		}
		
        partial void OnLockedChanging(bool? value);
        partial void OnLockedChanged();
		
		private bool? _Locked;
		public bool? Locked { 
		    get{
		        return _Locked;
		    } 
		    set{
		        this.OnLockedChanging(value);
                this.SendPropertyChanging();
                this._Locked = value;
                this.SendPropertyChanged("Locked");
                this.OnLockedChanged();
		    }
		}
		
        partial void OnShowOnPrintoutChanging(bool? value);
        partial void OnShowOnPrintoutChanged();
		
		private bool? _ShowOnPrintout;
		public bool? ShowOnPrintout { 
		    get{
		        return _ShowOnPrintout;
		    } 
		    set{
		        this.OnShowOnPrintoutChanging(value);
                this.SendPropertyChanging();
                this._ShowOnPrintout = value;
                this.SendPropertyChanged("ShowOnPrintout");
                this.OnShowOnPrintoutChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_Users table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_User 
    /// </summary>

	public partial class aspnet_User: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_User(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnApplicationIdChanging(Guid value);
        partial void OnApplicationIdChanged();
		
		private Guid _ApplicationId;
		public Guid ApplicationId { 
		    get{
		        return _ApplicationId;
		    } 
		    set{
		        this.OnApplicationIdChanging(value);
                this.SendPropertyChanging();
                this._ApplicationId = value;
                this.SendPropertyChanged("ApplicationId");
                this.OnApplicationIdChanged();
		    }
		}
		
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnUserNameChanging(string value);
        partial void OnUserNameChanged();
		
		private string _UserName;
		public string UserName { 
		    get{
		        return _UserName;
		    } 
		    set{
		        this.OnUserNameChanging(value);
                this.SendPropertyChanging();
                this._UserName = value;
                this.SendPropertyChanged("UserName");
                this.OnUserNameChanged();
		    }
		}
		
        partial void OnLoweredUserNameChanging(string value);
        partial void OnLoweredUserNameChanged();
		
		private string _LoweredUserName;
		public string LoweredUserName { 
		    get{
		        return _LoweredUserName;
		    } 
		    set{
		        this.OnLoweredUserNameChanging(value);
                this.SendPropertyChanging();
                this._LoweredUserName = value;
                this.SendPropertyChanged("LoweredUserName");
                this.OnLoweredUserNameChanged();
		    }
		}
		
        partial void OnMobileAliasChanging(string value);
        partial void OnMobileAliasChanged();
		
		private string _MobileAlias;
		public string MobileAlias { 
		    get{
		        return _MobileAlias;
		    } 
		    set{
		        this.OnMobileAliasChanging(value);
                this.SendPropertyChanging();
                this._MobileAlias = value;
                this.SendPropertyChanged("MobileAlias");
                this.OnMobileAliasChanged();
		    }
		}
		
        partial void OnIsAnonymousChanging(bool value);
        partial void OnIsAnonymousChanged();
		
		private bool _IsAnonymous;
		public bool IsAnonymous { 
		    get{
		        return _IsAnonymous;
		    } 
		    set{
		        this.OnIsAnonymousChanging(value);
                this.SendPropertyChanging();
                this._IsAnonymous = value;
                this.SendPropertyChanged("IsAnonymous");
                this.OnIsAnonymousChanged();
		    }
		}
		
        partial void OnLastActivityDateChanging(DateTime value);
        partial void OnLastActivityDateChanged();
		
		private DateTime _LastActivityDate;
		public DateTime LastActivityDate { 
		    get{
		        return _LastActivityDate;
		    } 
		    set{
		        this.OnLastActivityDateChanging(value);
                this.SendPropertyChanging();
                this._LastActivityDate = value;
                this.SendPropertyChanged("LastActivityDate");
                this.OnLastActivityDateChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Application> aspnet_Applications
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Applications
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_Membership> aspnet_Memberships
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Memberships
                       where items.UserId == _UserId
                       select items;
            }
        }

        public IQueryable<aspnet_PersonalizationPerUser> aspnet_PersonalizationPerUsers
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_PersonalizationPerUsers
                       where items.UserId == _UserId
                       select items;
            }
        }

        public IQueryable<aspnet_Profile> aspnet_Profiles
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Profiles
                       where items.UserId == _UserId
                       select items;
            }
        }

        public IQueryable<aspnet_UsersInRole> aspnet_UsersInRoles
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_UsersInRoles
                       where items.UserId == _UserId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the UserRecipe table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.UserRecipe 
    /// </summary>

	public partial class UserRecipe: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public UserRecipe(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnUserIDChanging(Guid value);
        partial void OnUserIDChanged();
		
		private Guid _UserID;
		public Guid UserID { 
		    get{
		        return _UserID;
		    } 
		    set{
		        this.OnUserIDChanging(value);
                this.SendPropertyChanging();
                this._UserID = value;
                this.SendPropertyChanged("UserID");
                this.OnUserIDChanged();
		    }
		}
		
        partial void OnRecipeIDChanging(int value);
        partial void OnRecipeIDChanged();
		
		private int _RecipeID;
		public int RecipeID { 
		    get{
		        return _RecipeID;
		    } 
		    set{
		        this.OnRecipeIDChanging(value);
                this.SendPropertyChanging();
                this._RecipeID = value;
                this.SendPropertyChanged("RecipeID");
                this.OnRecipeIDChanged();
		    }
		}
		
        partial void OnVoteChanging(int value);
        partial void OnVoteChanged();
		
		private int _Vote;
		public int Vote { 
		    get{
		        return _Vote;
		    } 
		    set{
		        this.OnVoteChanging(value);
                this.SendPropertyChanging();
                this._Vote = value;
                this.SendPropertyChanged("Vote");
                this.OnVoteChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_SchemaVersions table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_SchemaVersion 
    /// </summary>

	public partial class aspnet_SchemaVersion: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_SchemaVersion(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnFeatureChanging(string value);
        partial void OnFeatureChanged();
		
		private string _Feature;
		public string Feature { 
		    get{
		        return _Feature;
		    } 
		    set{
		        this.OnFeatureChanging(value);
                this.SendPropertyChanging();
                this._Feature = value;
                this.SendPropertyChanged("Feature");
                this.OnFeatureChanged();
		    }
		}
		
        partial void OnCompatibleSchemaVersionChanging(string value);
        partial void OnCompatibleSchemaVersionChanged();
		
		private string _CompatibleSchemaVersion;
		public string CompatibleSchemaVersion { 
		    get{
		        return _CompatibleSchemaVersion;
		    } 
		    set{
		        this.OnCompatibleSchemaVersionChanging(value);
                this.SendPropertyChanging();
                this._CompatibleSchemaVersion = value;
                this.SendPropertyChanged("CompatibleSchemaVersion");
                this.OnCompatibleSchemaVersionChanged();
		    }
		}
		
        partial void OnIsCurrentVersionChanging(bool value);
        partial void OnIsCurrentVersionChanged();
		
		private bool _IsCurrentVersion;
		public bool IsCurrentVersion { 
		    get{
		        return _IsCurrentVersion;
		    } 
		    set{
		        this.OnIsCurrentVersionChanging(value);
                this.SendPropertyChanging();
                this._IsCurrentVersion = value;
                this.SendPropertyChanged("IsCurrentVersion");
                this.OnIsCurrentVersionChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the RecipeIngredient table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.RecipeIngredient 
    /// </summary>

	public partial class RecipeIngredient: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public RecipeIngredient(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnRecipeIngredientIDChanging(int value);
        partial void OnRecipeIngredientIDChanged();
		
		private int _RecipeIngredientID;
		public int RecipeIngredientID { 
		    get{
		        return _RecipeIngredientID;
		    } 
		    set{
		        this.OnRecipeIngredientIDChanging(value);
                this.SendPropertyChanging();
                this._RecipeIngredientID = value;
                this.SendPropertyChanged("RecipeIngredientID");
                this.OnRecipeIngredientIDChanged();
		    }
		}
		
        partial void OnIngredientChanging(string value);
        partial void OnIngredientChanged();
		
		private string _Ingredient;
		public string Ingredient { 
		    get{
		        return _Ingredient;
		    } 
		    set{
		        this.OnIngredientChanging(value);
                this.SendPropertyChanging();
                this._Ingredient = value;
                this.SendPropertyChanged("Ingredient");
                this.OnIngredientChanged();
		    }
		}
		
        partial void OnIngredientMeasurementChanging(string value);
        partial void OnIngredientMeasurementChanged();
		
		private string _IngredientMeasurement;
		public string IngredientMeasurement { 
		    get{
		        return _IngredientMeasurement;
		    } 
		    set{
		        this.OnIngredientMeasurementChanging(value);
                this.SendPropertyChanging();
                this._IngredientMeasurement = value;
                this.SendPropertyChanged("IngredientMeasurement");
                this.OnIngredientMeasurementChanged();
		    }
		}
		
        partial void OnIngredientQuantityChanging(int value);
        partial void OnIngredientQuantityChanged();
		
		private int _IngredientQuantity;
		public int IngredientQuantity { 
		    get{
		        return _IngredientQuantity;
		    } 
		    set{
		        this.OnIngredientQuantityChanging(value);
                this.SendPropertyChanging();
                this._IngredientQuantity = value;
                this.SendPropertyChanged("IngredientQuantity");
                this.OnIngredientQuantityChanged();
		    }
		}
		
        partial void OnRecipeIDChanging(int? value);
        partial void OnRecipeIDChanged();
		
		private int? _RecipeID;
		public int? RecipeID { 
		    get{
		        return _RecipeID;
		    } 
		    set{
		        this.OnRecipeIDChanging(value);
                this.SendPropertyChanging();
                this._RecipeID = value;
                this.SendPropertyChanged("RecipeID");
                this.OnRecipeIDChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<Recipe> Recipes
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.Recipes
                       where items.RecipeID == _RecipeID
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the Recipe table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.Recipe 
    /// </summary>

	public partial class Recipe: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public Recipe(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnRecipeIDChanging(int value);
        partial void OnRecipeIDChanged();
		
		private int _RecipeID;
		public int RecipeID { 
		    get{
		        return _RecipeID;
		    } 
		    set{
		        this.OnRecipeIDChanging(value);
                this.SendPropertyChanging();
                this._RecipeID = value;
                this.SendPropertyChanged("RecipeID");
                this.OnRecipeIDChanged();
		    }
		}
		
        partial void OnRecipeNameChanging(string value);
        partial void OnRecipeNameChanged();
		
		private string _RecipeName;
		public string RecipeName { 
		    get{
		        return _RecipeName;
		    } 
		    set{
		        this.OnRecipeNameChanging(value);
                this.SendPropertyChanging();
                this._RecipeName = value;
                this.SendPropertyChanged("RecipeName");
                this.OnRecipeNameChanged();
		    }
		}
		
        partial void OnRecipeDirectionsChanging(string value);
        partial void OnRecipeDirectionsChanged();
		
		private string _RecipeDirections;
		public string RecipeDirections { 
		    get{
		        return _RecipeDirections;
		    } 
		    set{
		        this.OnRecipeDirectionsChanging(value);
                this.SendPropertyChanging();
                this._RecipeDirections = value;
                this.SendPropertyChanged("RecipeDirections");
                this.OnRecipeDirectionsChanged();
		    }
		}
		
        partial void OnRecipeServingChanging(int value);
        partial void OnRecipeServingChanged();
		
		private int _RecipeServing;
		public int RecipeServing { 
		    get{
		        return _RecipeServing;
		    } 
		    set{
		        this.OnRecipeServingChanging(value);
                this.SendPropertyChanging();
                this._RecipeServing = value;
                this.SendPropertyChanged("RecipeServing");
                this.OnRecipeServingChanged();
		    }
		}
		
        partial void OnUserIDChanging(Guid value);
        partial void OnUserIDChanged();
		
		private Guid _UserID;
		public Guid UserID { 
		    get{
		        return _UserID;
		    } 
		    set{
		        this.OnUserIDChanging(value);
                this.SendPropertyChanging();
                this._UserID = value;
                this.SendPropertyChanged("UserID");
                this.OnUserIDChanged();
		    }
		}
		
        partial void OnRecipeSubmitDateChanging(string value);
        partial void OnRecipeSubmitDateChanged();
		
		private string _RecipeSubmitDate;
		public string RecipeSubmitDate { 
		    get{
		        return _RecipeSubmitDate;
		    } 
		    set{
		        this.OnRecipeSubmitDateChanging(value);
                this.SendPropertyChanging();
                this._RecipeSubmitDate = value;
                this.SendPropertyChanged("RecipeSubmitDate");
                this.OnRecipeSubmitDateChanged();
		    }
		}
		
        partial void OnApprovidedChanging(bool value);
        partial void OnApprovidedChanged();
		
		private bool _Approvided;
		public bool Approvided { 
		    get{
		        return _Approvided;
		    } 
		    set{
		        this.OnApprovidedChanging(value);
                this.SendPropertyChanging();
                this._Approvided = value;
                this.SendPropertyChanged("Approvided");
                this.OnApprovidedChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<RecipeIngredient> RecipeIngredients
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.RecipeIngredients
                       where items.RecipeID == _RecipeID
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the CSC_User table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.CSC_User 
    /// </summary>

	public partial class CSC_User: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public CSC_User(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnFirstNameChanging(string value);
        partial void OnFirstNameChanged();
		
		private string _FirstName;
		public string FirstName { 
		    get{
		        return _FirstName;
		    } 
		    set{
		        this.OnFirstNameChanging(value);
                this.SendPropertyChanging();
                this._FirstName = value;
                this.SendPropertyChanged("FirstName");
                this.OnFirstNameChanged();
		    }
		}
		
        partial void OnLastNameChanging(string value);
        partial void OnLastNameChanged();
		
		private string _LastName;
		public string LastName { 
		    get{
		        return _LastName;
		    } 
		    set{
		        this.OnLastNameChanging(value);
                this.SendPropertyChanging();
                this._LastName = value;
                this.SendPropertyChanged("LastName");
                this.OnLastNameChanged();
		    }
		}
		
        partial void OnEmailAddressChanging(string value);
        partial void OnEmailAddressChanged();
		
		private string _EmailAddress;
		public string EmailAddress { 
		    get{
		        return _EmailAddress;
		    } 
		    set{
		        this.OnEmailAddressChanging(value);
                this.SendPropertyChanging();
                this._EmailAddress = value;
                this.SendPropertyChanged("EmailAddress");
                this.OnEmailAddressChanged();
		    }
		}
		
        partial void OnBirthDayChanging(string value);
        partial void OnBirthDayChanged();
		
		private string _BirthDay;
		public string BirthDay { 
		    get{
		        return _BirthDay;
		    } 
		    set{
		        this.OnBirthDayChanging(value);
                this.SendPropertyChanging();
                this._BirthDay = value;
                this.SendPropertyChanged("BirthDay");
                this.OnBirthDayChanged();
		    }
		}
		
        partial void OnGenderChanging(string value);
        partial void OnGenderChanged();
		
		private string _Gender;
		public string Gender { 
		    get{
		        return _Gender;
		    } 
		    set{
		        this.OnGenderChanging(value);
                this.SendPropertyChanging();
                this._Gender = value;
                this.SendPropertyChanged("Gender");
                this.OnGenderChanged();
		    }
		}
		
        partial void OnEthnicityChanging(string value);
        partial void OnEthnicityChanged();
		
		private string _Ethnicity;
		public string Ethnicity { 
		    get{
		        return _Ethnicity;
		    } 
		    set{
		        this.OnEthnicityChanging(value);
                this.SendPropertyChanging();
                this._Ethnicity = value;
                this.SendPropertyChanged("Ethnicity");
                this.OnEthnicityChanged();
		    }
		}
		
        partial void OnZipcodeChanging(string value);
        partial void OnZipcodeChanged();
		
		private string _Zipcode;
		public string Zipcode { 
		    get{
		        return _Zipcode;
		    } 
		    set{
		        this.OnZipcodeChanging(value);
                this.SendPropertyChanging();
                this._Zipcode = value;
                this.SendPropertyChanged("Zipcode");
                this.OnZipcodeChanged();
		    }
		}
		
        partial void OnCountryChanging(string value);
        partial void OnCountryChanged();
		
		private string _Country;
		public string Country { 
		    get{
		        return _Country;
		    } 
		    set{
		        this.OnCountryChanging(value);
                this.SendPropertyChanging();
                this._Country = value;
                this.SendPropertyChanged("Country");
                this.OnCountryChanged();
		    }
		}
		
        partial void OnRegistrationConfirmedChanging(bool value);
        partial void OnRegistrationConfirmedChanged();
		
		private bool _RegistrationConfirmed;
		public bool RegistrationConfirmed { 
		    get{
		        return _RegistrationConfirmed;
		    } 
		    set{
		        this.OnRegistrationConfirmedChanging(value);
                this.SendPropertyChanging();
                this._RegistrationConfirmed = value;
                this.SendPropertyChanged("RegistrationConfirmed");
                this.OnRegistrationConfirmedChanged();
		    }
		}
		
        partial void OnQuestionaireLastPageCompletedChanging(int value);
        partial void OnQuestionaireLastPageCompletedChanged();
		
		private int _QuestionaireLastPageCompleted;
		public int QuestionaireLastPageCompleted { 
		    get{
		        return _QuestionaireLastPageCompleted;
		    } 
		    set{
		        this.OnQuestionaireLastPageCompletedChanging(value);
                this.SendPropertyChanging();
                this._QuestionaireLastPageCompleted = value;
                this.SendPropertyChanged("QuestionaireLastPageCompleted");
                this.OnQuestionaireLastPageCompletedChanged();
		    }
		}
		
        partial void OnQuestionaireCompletedChanging(bool value);
        partial void OnQuestionaireCompletedChanged();
		
		private bool _QuestionaireCompleted;
		public bool QuestionaireCompleted { 
		    get{
		        return _QuestionaireCompleted;
		    } 
		    set{
		        this.OnQuestionaireCompletedChanging(value);
                this.SendPropertyChanging();
                this._QuestionaireCompleted = value;
                this.SendPropertyChanged("QuestionaireCompleted");
                this.OnQuestionaireCompletedChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_Membership table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_Membership 
    /// </summary>

	public partial class aspnet_Membership: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_Membership(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnApplicationIdChanging(Guid value);
        partial void OnApplicationIdChanged();
		
		private Guid _ApplicationId;
		public Guid ApplicationId { 
		    get{
		        return _ApplicationId;
		    } 
		    set{
		        this.OnApplicationIdChanging(value);
                this.SendPropertyChanging();
                this._ApplicationId = value;
                this.SendPropertyChanged("ApplicationId");
                this.OnApplicationIdChanged();
		    }
		}
		
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnPasswordChanging(string value);
        partial void OnPasswordChanged();
		
		private string _Password;
		public string Password { 
		    get{
		        return _Password;
		    } 
		    set{
		        this.OnPasswordChanging(value);
                this.SendPropertyChanging();
                this._Password = value;
                this.SendPropertyChanged("Password");
                this.OnPasswordChanged();
		    }
		}
		
        partial void OnPasswordFormatChanging(int value);
        partial void OnPasswordFormatChanged();
		
		private int _PasswordFormat;
		public int PasswordFormat { 
		    get{
		        return _PasswordFormat;
		    } 
		    set{
		        this.OnPasswordFormatChanging(value);
                this.SendPropertyChanging();
                this._PasswordFormat = value;
                this.SendPropertyChanged("PasswordFormat");
                this.OnPasswordFormatChanged();
		    }
		}
		
        partial void OnPasswordSaltChanging(string value);
        partial void OnPasswordSaltChanged();
		
		private string _PasswordSalt;
		public string PasswordSalt { 
		    get{
		        return _PasswordSalt;
		    } 
		    set{
		        this.OnPasswordSaltChanging(value);
                this.SendPropertyChanging();
                this._PasswordSalt = value;
                this.SendPropertyChanged("PasswordSalt");
                this.OnPasswordSaltChanged();
		    }
		}
		
        partial void OnMobilePINChanging(string value);
        partial void OnMobilePINChanged();
		
		private string _MobilePIN;
		public string MobilePIN { 
		    get{
		        return _MobilePIN;
		    } 
		    set{
		        this.OnMobilePINChanging(value);
                this.SendPropertyChanging();
                this._MobilePIN = value;
                this.SendPropertyChanged("MobilePIN");
                this.OnMobilePINChanged();
		    }
		}
		
        partial void OnEmailChanging(string value);
        partial void OnEmailChanged();
		
		private string _Email;
		public string Email { 
		    get{
		        return _Email;
		    } 
		    set{
		        this.OnEmailChanging(value);
                this.SendPropertyChanging();
                this._Email = value;
                this.SendPropertyChanged("Email");
                this.OnEmailChanged();
		    }
		}
		
        partial void OnLoweredEmailChanging(string value);
        partial void OnLoweredEmailChanged();
		
		private string _LoweredEmail;
		public string LoweredEmail { 
		    get{
		        return _LoweredEmail;
		    } 
		    set{
		        this.OnLoweredEmailChanging(value);
                this.SendPropertyChanging();
                this._LoweredEmail = value;
                this.SendPropertyChanged("LoweredEmail");
                this.OnLoweredEmailChanged();
		    }
		}
		
        partial void OnPasswordQuestionChanging(string value);
        partial void OnPasswordQuestionChanged();
		
		private string _PasswordQuestion;
		public string PasswordQuestion { 
		    get{
		        return _PasswordQuestion;
		    } 
		    set{
		        this.OnPasswordQuestionChanging(value);
                this.SendPropertyChanging();
                this._PasswordQuestion = value;
                this.SendPropertyChanged("PasswordQuestion");
                this.OnPasswordQuestionChanged();
		    }
		}
		
        partial void OnPasswordAnswerChanging(string value);
        partial void OnPasswordAnswerChanged();
		
		private string _PasswordAnswer;
		public string PasswordAnswer { 
		    get{
		        return _PasswordAnswer;
		    } 
		    set{
		        this.OnPasswordAnswerChanging(value);
                this.SendPropertyChanging();
                this._PasswordAnswer = value;
                this.SendPropertyChanged("PasswordAnswer");
                this.OnPasswordAnswerChanged();
		    }
		}
		
        partial void OnIsApprovedChanging(bool value);
        partial void OnIsApprovedChanged();
		
		private bool _IsApproved;
		public bool IsApproved { 
		    get{
		        return _IsApproved;
		    } 
		    set{
		        this.OnIsApprovedChanging(value);
                this.SendPropertyChanging();
                this._IsApproved = value;
                this.SendPropertyChanged("IsApproved");
                this.OnIsApprovedChanged();
		    }
		}
		
        partial void OnIsLockedOutChanging(bool value);
        partial void OnIsLockedOutChanged();
		
		private bool _IsLockedOut;
		public bool IsLockedOut { 
		    get{
		        return _IsLockedOut;
		    } 
		    set{
		        this.OnIsLockedOutChanging(value);
                this.SendPropertyChanging();
                this._IsLockedOut = value;
                this.SendPropertyChanged("IsLockedOut");
                this.OnIsLockedOutChanged();
		    }
		}
		
        partial void OnCreateDateChanging(DateTime value);
        partial void OnCreateDateChanged();
		
		private DateTime _CreateDate;
		public DateTime CreateDate { 
		    get{
		        return _CreateDate;
		    } 
		    set{
		        this.OnCreateDateChanging(value);
                this.SendPropertyChanging();
                this._CreateDate = value;
                this.SendPropertyChanged("CreateDate");
                this.OnCreateDateChanged();
		    }
		}
		
        partial void OnLastLoginDateChanging(DateTime value);
        partial void OnLastLoginDateChanged();
		
		private DateTime _LastLoginDate;
		public DateTime LastLoginDate { 
		    get{
		        return _LastLoginDate;
		    } 
		    set{
		        this.OnLastLoginDateChanging(value);
                this.SendPropertyChanging();
                this._LastLoginDate = value;
                this.SendPropertyChanged("LastLoginDate");
                this.OnLastLoginDateChanged();
		    }
		}
		
        partial void OnLastPasswordChangedDateChanging(DateTime value);
        partial void OnLastPasswordChangedDateChanged();
		
		private DateTime _LastPasswordChangedDate;
		public DateTime LastPasswordChangedDate { 
		    get{
		        return _LastPasswordChangedDate;
		    } 
		    set{
		        this.OnLastPasswordChangedDateChanging(value);
                this.SendPropertyChanging();
                this._LastPasswordChangedDate = value;
                this.SendPropertyChanged("LastPasswordChangedDate");
                this.OnLastPasswordChangedDateChanged();
		    }
		}
		
        partial void OnLastLockoutDateChanging(DateTime value);
        partial void OnLastLockoutDateChanged();
		
		private DateTime _LastLockoutDate;
		public DateTime LastLockoutDate { 
		    get{
		        return _LastLockoutDate;
		    } 
		    set{
		        this.OnLastLockoutDateChanging(value);
                this.SendPropertyChanging();
                this._LastLockoutDate = value;
                this.SendPropertyChanged("LastLockoutDate");
                this.OnLastLockoutDateChanged();
		    }
		}
		
        partial void OnFailedPasswordAttemptCountChanging(int value);
        partial void OnFailedPasswordAttemptCountChanged();
		
		private int _FailedPasswordAttemptCount;
		public int FailedPasswordAttemptCount { 
		    get{
		        return _FailedPasswordAttemptCount;
		    } 
		    set{
		        this.OnFailedPasswordAttemptCountChanging(value);
                this.SendPropertyChanging();
                this._FailedPasswordAttemptCount = value;
                this.SendPropertyChanged("FailedPasswordAttemptCount");
                this.OnFailedPasswordAttemptCountChanged();
		    }
		}
		
        partial void OnFailedPasswordAttemptWindowStartChanging(DateTime value);
        partial void OnFailedPasswordAttemptWindowStartChanged();
		
		private DateTime _FailedPasswordAttemptWindowStart;
		public DateTime FailedPasswordAttemptWindowStart { 
		    get{
		        return _FailedPasswordAttemptWindowStart;
		    } 
		    set{
		        this.OnFailedPasswordAttemptWindowStartChanging(value);
                this.SendPropertyChanging();
                this._FailedPasswordAttemptWindowStart = value;
                this.SendPropertyChanged("FailedPasswordAttemptWindowStart");
                this.OnFailedPasswordAttemptWindowStartChanged();
		    }
		}
		
        partial void OnFailedPasswordAnswerAttemptCountChanging(int value);
        partial void OnFailedPasswordAnswerAttemptCountChanged();
		
		private int _FailedPasswordAnswerAttemptCount;
		public int FailedPasswordAnswerAttemptCount { 
		    get{
		        return _FailedPasswordAnswerAttemptCount;
		    } 
		    set{
		        this.OnFailedPasswordAnswerAttemptCountChanging(value);
                this.SendPropertyChanging();
                this._FailedPasswordAnswerAttemptCount = value;
                this.SendPropertyChanged("FailedPasswordAnswerAttemptCount");
                this.OnFailedPasswordAnswerAttemptCountChanged();
		    }
		}
		
        partial void OnFailedPasswordAnswerAttemptWindowStartChanging(DateTime value);
        partial void OnFailedPasswordAnswerAttemptWindowStartChanged();
		
		private DateTime _FailedPasswordAnswerAttemptWindowStart;
		public DateTime FailedPasswordAnswerAttemptWindowStart { 
		    get{
		        return _FailedPasswordAnswerAttemptWindowStart;
		    } 
		    set{
		        this.OnFailedPasswordAnswerAttemptWindowStartChanging(value);
                this.SendPropertyChanging();
                this._FailedPasswordAnswerAttemptWindowStart = value;
                this.SendPropertyChanged("FailedPasswordAnswerAttemptWindowStart");
                this.OnFailedPasswordAnswerAttemptWindowStartChanged();
		    }
		}
		
        partial void OnCommentChanging(string value);
        partial void OnCommentChanged();
		
		private string _Comment;
		public string Comment { 
		    get{
		        return _Comment;
		    } 
		    set{
		        this.OnCommentChanging(value);
                this.SendPropertyChanging();
                this._Comment = value;
                this.SendPropertyChanged("Comment");
                this.OnCommentChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Application> aspnet_Applications
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Applications
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_User> aspnet_Users
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Users
                       where items.UserId == _UserId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the HealthGoal table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.HealthGoal 
    /// </summary>

	public partial class HealthGoal: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public HealthGoal(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
		
		private int _Id;
		public int Id { 
		    get{
		        return _Id;
		    } 
		    set{
		        this.OnIdChanging(value);
                this.SendPropertyChanging();
                this._Id = value;
                this.SendPropertyChanged("Id");
                this.OnIdChanged();
		    }
		}
		
        partial void OnDescriptionChanging(string value);
        partial void OnDescriptionChanged();
		
		private string _Description;
		public string Description { 
		    get{
		        return _Description;
		    } 
		    set{
		        this.OnDescriptionChanging(value);
                this.SendPropertyChanging();
                this._Description = value;
                this.SendPropertyChanged("Description");
                this.OnDescriptionChanged();
		    }
		}
		
        partial void OnSelectedChanging(bool value);
        partial void OnSelectedChanged();
		
		private bool _Selected;
		public bool Selected { 
		    get{
		        return _Selected;
		    } 
		    set{
		        this.OnSelectedChanging(value);
                this.SendPropertyChanging();
                this._Selected = value;
                this.SendPropertyChanged("Selected");
                this.OnSelectedChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the HealthGoalToUser table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.HealthGoalToUser 
    /// </summary>

	public partial class HealthGoalToUser: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public HealthGoalToUser(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnHealthGoalIdChanging(int value);
        partial void OnHealthGoalIdChanged();
		
		private int _HealthGoalId;
		public int HealthGoalId { 
		    get{
		        return _HealthGoalId;
		    } 
		    set{
		        this.OnHealthGoalIdChanging(value);
                this.SendPropertyChanging();
                this._HealthGoalId = value;
                this.SendPropertyChanged("HealthGoalId");
                this.OnHealthGoalIdChanged();
		    }
		}
		
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the HealthParameter table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.HealthParameter 
    /// </summary>

	public partial class HealthParameter: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public HealthParameter(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
		
		private int _Id;
		public int Id { 
		    get{
		        return _Id;
		    } 
		    set{
		        this.OnIdChanging(value);
                this.SendPropertyChanging();
                this._Id = value;
                this.SendPropertyChanged("Id");
                this.OnIdChanged();
		    }
		}
		
        partial void OnNameChanging(string value);
        partial void OnNameChanged();
		
		private string _Name;
		public string Name { 
		    get{
		        return _Name;
		    } 
		    set{
		        this.OnNameChanging(value);
                this.SendPropertyChanging();
                this._Name = value;
                this.SendPropertyChanged("Name");
                this.OnNameChanged();
		    }
		}
		
        partial void OnDescriptionChanging(string value);
        partial void OnDescriptionChanged();
		
		private string _Description;
		public string Description { 
		    get{
		        return _Description;
		    } 
		    set{
		        this.OnDescriptionChanging(value);
                this.SendPropertyChanging();
                this._Description = value;
                this.SendPropertyChanged("Description");
                this.OnDescriptionChanged();
		    }
		}
		
        partial void OnFormulaChanging(string value);
        partial void OnFormulaChanged();
		
		private string _Formula;
		public string Formula { 
		    get{
		        return _Formula;
		    } 
		    set{
		        this.OnFormulaChanging(value);
                this.SendPropertyChanging();
                this._Formula = value;
                this.SendPropertyChanged("Formula");
                this.OnFormulaChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the TrackableHealthParameter table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.TrackableHealthParameter 
    /// </summary>

	public partial class TrackableHealthParameter: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public TrackableHealthParameter(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
		
		private int _Id;
		public int Id { 
		    get{
		        return _Id;
		    } 
		    set{
		        this.OnIdChanging(value);
                this.SendPropertyChanging();
                this._Id = value;
                this.SendPropertyChanged("Id");
                this.OnIdChanged();
		    }
		}
		
        partial void OnValueChanging(double value);
        partial void OnValueChanged();
		
		private double _Value;
		public double Value { 
		    get{
		        return _Value;
		    } 
		    set{
		        this.OnValueChanging(value);
                this.SendPropertyChanging();
                this._Value = value;
                this.SendPropertyChanged("Value");
                this.OnValueChanged();
		    }
		}
		
        partial void OnEnteredOnChanging(DateTime value);
        partial void OnEnteredOnChanged();
		
		private DateTime _EnteredOn;
		public DateTime EnteredOn { 
		    get{
		        return _EnteredOn;
		    } 
		    set{
		        this.OnEnteredOnChanging(value);
                this.SendPropertyChanging();
                this._EnteredOn = value;
                this.SendPropertyChanged("EnteredOn");
                this.OnEnteredOnChanged();
		    }
		}
		
        partial void OnMaxValueChanging(double value);
        partial void OnMaxValueChanged();
		
		private double _MaxValue;
		public double MaxValue { 
		    get{
		        return _MaxValue;
		    } 
		    set{
		        this.OnMaxValueChanging(value);
                this.SendPropertyChanging();
                this._MaxValue = value;
                this.SendPropertyChanged("MaxValue");
                this.OnMaxValueChanged();
		    }
		}
		
        partial void OnMinValueChanging(double value);
        partial void OnMinValueChanged();
		
		private double _MinValue;
		public double MinValue { 
		    get{
		        return _MinValue;
		    } 
		    set{
		        this.OnMinValueChanging(value);
                this.SendPropertyChanging();
                this._MinValue = value;
                this.SendPropertyChanged("MinValue");
                this.OnMinValueChanged();
		    }
		}
		
        partial void OnStatusChanging(string value);
        partial void OnStatusChanged();
		
		private string _Status;
		public string Status { 
		    get{
		        return _Status;
		    } 
		    set{
		        this.OnStatusChanging(value);
                this.SendPropertyChanging();
                this._Status = value;
                this.SendPropertyChanged("Status");
                this.OnStatusChanged();
		    }
		}
		
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnHealthParameterIdChanging(int value);
        partial void OnHealthParameterIdChanged();
		
		private int _HealthParameterId;
		public int HealthParameterId { 
		    get{
		        return _HealthParameterId;
		    } 
		    set{
		        this.OnHealthParameterIdChanging(value);
                this.SendPropertyChanging();
                this._HealthParameterId = value;
                this.SendPropertyChanged("HealthParameterId");
                this.OnHealthParameterIdChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the UserManualSection table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.UserManualSection 
    /// </summary>

	public partial class UserManualSection: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public UserManualSection(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
		
		private int _Id;
		public int Id { 
		    get{
		        return _Id;
		    } 
		    set{
		        this.OnIdChanging(value);
                this.SendPropertyChanging();
                this._Id = value;
                this.SendPropertyChanged("Id");
                this.OnIdChanged();
		    }
		}
		
        partial void OnTitleChanging(string value);
        partial void OnTitleChanged();
		
		private string _Title;
		public string Title { 
		    get{
		        return _Title;
		    } 
		    set{
		        this.OnTitleChanging(value);
                this.SendPropertyChanging();
                this._Title = value;
                this.SendPropertyChanged("Title");
                this.OnTitleChanged();
		    }
		}
		
        partial void OnParentChanging(int value);
        partial void OnParentChanged();
		
		private int _Parent;
		public int Parent { 
		    get{
		        return _Parent;
		    } 
		    set{
		        this.OnParentChanging(value);
                this.SendPropertyChanging();
                this._Parent = value;
                this.SendPropertyChanged("Parent");
                this.OnParentChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the UserManualContent table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.UserManualContent 
    /// </summary>

	public partial class UserManualContent: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public UserManualContent(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnIdChanging(int value);
        partial void OnIdChanged();
		
		private int _Id;
		public int Id { 
		    get{
		        return _Id;
		    } 
		    set{
		        this.OnIdChanging(value);
                this.SendPropertyChanging();
                this._Id = value;
                this.SendPropertyChanged("Id");
                this.OnIdChanged();
		    }
		}
		
        partial void OnUserManualSectionIdChanging(int value);
        partial void OnUserManualSectionIdChanged();
		
		private int _UserManualSectionId;
		public int UserManualSectionId { 
		    get{
		        return _UserManualSectionId;
		    } 
		    set{
		        this.OnUserManualSectionIdChanging(value);
                this.SendPropertyChanging();
                this._UserManualSectionId = value;
                this.SendPropertyChanged("UserManualSectionId");
                this.OnUserManualSectionIdChanged();
		    }
		}
		
        partial void OnTitleChanging(string value);
        partial void OnTitleChanged();
		
		private string _Title;
		public string Title { 
		    get{
		        return _Title;
		    } 
		    set{
		        this.OnTitleChanging(value);
                this.SendPropertyChanging();
                this._Title = value;
                this.SendPropertyChanged("Title");
                this.OnTitleChanged();
		    }
		}
		
        partial void OnContentChanging(string value);
        partial void OnContentChanged();
		
		private string _Content;
		public string Content { 
		    get{
		        return _Content;
		    } 
		    set{
		        this.OnContentChanging(value);
                this.SendPropertyChanging();
                this._Content = value;
                this.SendPropertyChanged("Content");
                this.OnContentChanged();
		    }
		}
		
        partial void OnImageChanging(string value);
        partial void OnImageChanged();
		
		private string _Image;
		public string Image { 
		    get{
		        return _Image;
		    } 
		    set{
		        this.OnImageChanging(value);
                this.SendPropertyChanging();
                this._Image = value;
                this.SendPropertyChanged("Image");
                this.OnImageChanged();
		    }
		}
		
        partial void OnCaptionChanging(string value);
        partial void OnCaptionChanged();
		
		private string _Caption;
		public string Caption { 
		    get{
		        return _Caption;
		    } 
		    set{
		        this.OnCaptionChanging(value);
                this.SendPropertyChanging();
                this._Caption = value;
                this.SendPropertyChanged("Caption");
                this.OnCaptionChanged();
		    }
		}
		
        partial void OnDeletedChanging(bool value);
        partial void OnDeletedChanged();
		
		private bool _Deleted;
		public bool Deleted { 
		    get{
		        return _Deleted;
		    } 
		    set{
		        this.OnDeletedChanging(value);
                this.SendPropertyChanging();
                this._Deleted = value;
                this.SendPropertyChanged("Deleted");
                this.OnDeletedChanged();
		    }
		}
		
        partial void OnOrderIndexChanging(int value);
        partial void OnOrderIndexChanged();
		
		private int _OrderIndex;
		public int OrderIndex { 
		    get{
		        return _OrderIndex;
		    } 
		    set{
		        this.OnOrderIndexChanging(value);
                this.SendPropertyChanging();
                this._OrderIndex = value;
                this.SendPropertyChanged("OrderIndex");
                this.OnOrderIndexChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_Profile table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_Profile 
    /// </summary>

	public partial class aspnet_Profile: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_Profile(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnPropertyNamesChanging(string value);
        partial void OnPropertyNamesChanged();
		
		private string _PropertyNames;
		public string PropertyNames { 
		    get{
		        return _PropertyNames;
		    } 
		    set{
		        this.OnPropertyNamesChanging(value);
                this.SendPropertyChanging();
                this._PropertyNames = value;
                this.SendPropertyChanged("PropertyNames");
                this.OnPropertyNamesChanged();
		    }
		}
		
        partial void OnPropertyValuesStringChanging(string value);
        partial void OnPropertyValuesStringChanged();
		
		private string _PropertyValuesString;
		public string PropertyValuesString { 
		    get{
		        return _PropertyValuesString;
		    } 
		    set{
		        this.OnPropertyValuesStringChanging(value);
                this.SendPropertyChanging();
                this._PropertyValuesString = value;
                this.SendPropertyChanged("PropertyValuesString");
                this.OnPropertyValuesStringChanged();
		    }
		}
		
        partial void OnPropertyValuesBinaryChanging(byte[] value);
        partial void OnPropertyValuesBinaryChanged();
		
		private byte[] _PropertyValuesBinary;
		public byte[] PropertyValuesBinary { 
		    get{
		        return _PropertyValuesBinary;
		    } 
		    set{
		        this.OnPropertyValuesBinaryChanging(value);
                this.SendPropertyChanging();
                this._PropertyValuesBinary = value;
                this.SendPropertyChanged("PropertyValuesBinary");
                this.OnPropertyValuesBinaryChanged();
		    }
		}
		
        partial void OnLastUpdatedDateChanging(DateTime value);
        partial void OnLastUpdatedDateChanged();
		
		private DateTime _LastUpdatedDate;
		public DateTime LastUpdatedDate { 
		    get{
		        return _LastUpdatedDate;
		    } 
		    set{
		        this.OnLastUpdatedDateChanging(value);
                this.SendPropertyChanging();
                this._LastUpdatedDate = value;
                this.SendPropertyChanged("LastUpdatedDate");
                this.OnLastUpdatedDateChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_User> aspnet_Users
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Users
                       where items.UserId == _UserId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_Roles table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_Role 
    /// </summary>

	public partial class aspnet_Role: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_Role(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnApplicationIdChanging(Guid value);
        partial void OnApplicationIdChanged();
		
		private Guid _ApplicationId;
		public Guid ApplicationId { 
		    get{
		        return _ApplicationId;
		    } 
		    set{
		        this.OnApplicationIdChanging(value);
                this.SendPropertyChanging();
                this._ApplicationId = value;
                this.SendPropertyChanged("ApplicationId");
                this.OnApplicationIdChanged();
		    }
		}
		
        partial void OnRoleIdChanging(Guid value);
        partial void OnRoleIdChanged();
		
		private Guid _RoleId;
		public Guid RoleId { 
		    get{
		        return _RoleId;
		    } 
		    set{
		        this.OnRoleIdChanging(value);
                this.SendPropertyChanging();
                this._RoleId = value;
                this.SendPropertyChanged("RoleId");
                this.OnRoleIdChanged();
		    }
		}
		
        partial void OnRoleNameChanging(string value);
        partial void OnRoleNameChanged();
		
		private string _RoleName;
		public string RoleName { 
		    get{
		        return _RoleName;
		    } 
		    set{
		        this.OnRoleNameChanging(value);
                this.SendPropertyChanging();
                this._RoleName = value;
                this.SendPropertyChanged("RoleName");
                this.OnRoleNameChanged();
		    }
		}
		
        partial void OnLoweredRoleNameChanging(string value);
        partial void OnLoweredRoleNameChanged();
		
		private string _LoweredRoleName;
		public string LoweredRoleName { 
		    get{
		        return _LoweredRoleName;
		    } 
		    set{
		        this.OnLoweredRoleNameChanging(value);
                this.SendPropertyChanging();
                this._LoweredRoleName = value;
                this.SendPropertyChanged("LoweredRoleName");
                this.OnLoweredRoleNameChanged();
		    }
		}
		
        partial void OnDescriptionChanging(string value);
        partial void OnDescriptionChanged();
		
		private string _Description;
		public string Description { 
		    get{
		        return _Description;
		    } 
		    set{
		        this.OnDescriptionChanging(value);
                this.SendPropertyChanging();
                this._Description = value;
                this.SendPropertyChanged("Description");
                this.OnDescriptionChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Application> aspnet_Applications
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Applications
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_UsersInRole> aspnet_UsersInRoles
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_UsersInRoles
                       where items.RoleId == _RoleId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_UsersInRoles table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_UsersInRole 
    /// </summary>

	public partial class aspnet_UsersInRole: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_UsersInRole(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnUserIdChanging(Guid value);
        partial void OnUserIdChanged();
		
		private Guid _UserId;
		public Guid UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnRoleIdChanging(Guid value);
        partial void OnRoleIdChanged();
		
		private Guid _RoleId;
		public Guid RoleId { 
		    get{
		        return _RoleId;
		    } 
		    set{
		        this.OnRoleIdChanging(value);
                this.SendPropertyChanging();
                this._RoleId = value;
                this.SendPropertyChanged("RoleId");
                this.OnRoleIdChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Role> aspnet_Roles
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Roles
                       where items.RoleId == _RoleId
                       select items;
            }
        }

        public IQueryable<aspnet_User> aspnet_Users
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Users
                       where items.UserId == _UserId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_Paths table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_Path 
    /// </summary>

	public partial class aspnet_Path: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_Path(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnApplicationIdChanging(Guid value);
        partial void OnApplicationIdChanged();
		
		private Guid _ApplicationId;
		public Guid ApplicationId { 
		    get{
		        return _ApplicationId;
		    } 
		    set{
		        this.OnApplicationIdChanging(value);
                this.SendPropertyChanging();
                this._ApplicationId = value;
                this.SendPropertyChanged("ApplicationId");
                this.OnApplicationIdChanged();
		    }
		}
		
        partial void OnPathIdChanging(Guid value);
        partial void OnPathIdChanged();
		
		private Guid _PathId;
		public Guid PathId { 
		    get{
		        return _PathId;
		    } 
		    set{
		        this.OnPathIdChanging(value);
                this.SendPropertyChanging();
                this._PathId = value;
                this.SendPropertyChanged("PathId");
                this.OnPathIdChanged();
		    }
		}
		
        partial void OnPathChanging(string value);
        partial void OnPathChanged();
		
		private string _Path;
		public string Path { 
		    get{
		        return _Path;
		    } 
		    set{
		        this.OnPathChanging(value);
                this.SendPropertyChanging();
                this._Path = value;
                this.SendPropertyChanged("Path");
                this.OnPathChanged();
		    }
		}
		
        partial void OnLoweredPathChanging(string value);
        partial void OnLoweredPathChanged();
		
		private string _LoweredPath;
		public string LoweredPath { 
		    get{
		        return _LoweredPath;
		    } 
		    set{
		        this.OnLoweredPathChanging(value);
                this.SendPropertyChanging();
                this._LoweredPath = value;
                this.SendPropertyChanged("LoweredPath");
                this.OnLoweredPathChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Application> aspnet_Applications
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Applications
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_PersonalizationAllUser> aspnet_PersonalizationAllUsers
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_PersonalizationAllUsers
                       where items.PathId == _PathId
                       select items;
            }
        }

        public IQueryable<aspnet_PersonalizationPerUser> aspnet_PersonalizationPerUsers
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_PersonalizationPerUsers
                       where items.PathId == _PathId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_PersonalizationAllUsers table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_PersonalizationAllUser 
    /// </summary>

	public partial class aspnet_PersonalizationAllUser: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_PersonalizationAllUser(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnPathIdChanging(Guid value);
        partial void OnPathIdChanged();
		
		private Guid _PathId;
		public Guid PathId { 
		    get{
		        return _PathId;
		    } 
		    set{
		        this.OnPathIdChanging(value);
                this.SendPropertyChanging();
                this._PathId = value;
                this.SendPropertyChanged("PathId");
                this.OnPathIdChanged();
		    }
		}
		
        partial void OnPageSettingsChanging(byte[] value);
        partial void OnPageSettingsChanged();
		
		private byte[] _PageSettings;
		public byte[] PageSettings { 
		    get{
		        return _PageSettings;
		    } 
		    set{
		        this.OnPageSettingsChanging(value);
                this.SendPropertyChanging();
                this._PageSettings = value;
                this.SendPropertyChanged("PageSettings");
                this.OnPageSettingsChanged();
		    }
		}
		
        partial void OnLastUpdatedDateChanging(DateTime value);
        partial void OnLastUpdatedDateChanged();
		
		private DateTime _LastUpdatedDate;
		public DateTime LastUpdatedDate { 
		    get{
		        return _LastUpdatedDate;
		    } 
		    set{
		        this.OnLastUpdatedDateChanging(value);
                this.SendPropertyChanging();
                this._LastUpdatedDate = value;
                this.SendPropertyChanged("LastUpdatedDate");
                this.OnLastUpdatedDateChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Path> aspnet_Paths
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Paths
                       where items.PathId == _PathId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_PersonalizationPerUser table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_PersonalizationPerUser 
    /// </summary>

	public partial class aspnet_PersonalizationPerUser: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_PersonalizationPerUser(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnIdChanging(Guid value);
        partial void OnIdChanged();
		
		private Guid _Id;
		public Guid Id { 
		    get{
		        return _Id;
		    } 
		    set{
		        this.OnIdChanging(value);
                this.SendPropertyChanging();
                this._Id = value;
                this.SendPropertyChanged("Id");
                this.OnIdChanged();
		    }
		}
		
        partial void OnPathIdChanging(Guid? value);
        partial void OnPathIdChanged();
		
		private Guid? _PathId;
		public Guid? PathId { 
		    get{
		        return _PathId;
		    } 
		    set{
		        this.OnPathIdChanging(value);
                this.SendPropertyChanging();
                this._PathId = value;
                this.SendPropertyChanged("PathId");
                this.OnPathIdChanged();
		    }
		}
		
        partial void OnUserIdChanging(Guid? value);
        partial void OnUserIdChanged();
		
		private Guid? _UserId;
		public Guid? UserId { 
		    get{
		        return _UserId;
		    } 
		    set{
		        this.OnUserIdChanging(value);
                this.SendPropertyChanging();
                this._UserId = value;
                this.SendPropertyChanged("UserId");
                this.OnUserIdChanged();
		    }
		}
		
        partial void OnPageSettingsChanging(byte[] value);
        partial void OnPageSettingsChanged();
		
		private byte[] _PageSettings;
		public byte[] PageSettings { 
		    get{
		        return _PageSettings;
		    } 
		    set{
		        this.OnPageSettingsChanging(value);
                this.SendPropertyChanging();
                this._PageSettings = value;
                this.SendPropertyChanged("PageSettings");
                this.OnPageSettingsChanged();
		    }
		}
		
        partial void OnLastUpdatedDateChanging(DateTime value);
        partial void OnLastUpdatedDateChanged();
		
		private DateTime _LastUpdatedDate;
		public DateTime LastUpdatedDate { 
		    get{
		        return _LastUpdatedDate;
		    } 
		    set{
		        this.OnLastUpdatedDateChanging(value);
                this.SendPropertyChanging();
                this._LastUpdatedDate = value;
                this.SendPropertyChanged("LastUpdatedDate");
                this.OnLastUpdatedDateChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Path> aspnet_Paths
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Paths
                       where items.PathId == _PathId
                       select items;
            }
        }

        public IQueryable<aspnet_User> aspnet_Users
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Users
                       where items.UserId == _UserId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_WebEvent_Events table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_WebEvent_Event 
    /// </summary>

	public partial class aspnet_WebEvent_Event: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_WebEvent_Event(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnEventIdChanging(string value);
        partial void OnEventIdChanged();
		
		private string _EventId;
		public string EventId { 
		    get{
		        return _EventId;
		    } 
		    set{
		        this.OnEventIdChanging(value);
                this.SendPropertyChanging();
                this._EventId = value;
                this.SendPropertyChanged("EventId");
                this.OnEventIdChanged();
		    }
		}
		
        partial void OnEventTimeUtcChanging(DateTime value);
        partial void OnEventTimeUtcChanged();
		
		private DateTime _EventTimeUtc;
		public DateTime EventTimeUtc { 
		    get{
		        return _EventTimeUtc;
		    } 
		    set{
		        this.OnEventTimeUtcChanging(value);
                this.SendPropertyChanging();
                this._EventTimeUtc = value;
                this.SendPropertyChanged("EventTimeUtc");
                this.OnEventTimeUtcChanged();
		    }
		}
		
        partial void OnEventTimeChanging(DateTime value);
        partial void OnEventTimeChanged();
		
		private DateTime _EventTime;
		public DateTime EventTime { 
		    get{
		        return _EventTime;
		    } 
		    set{
		        this.OnEventTimeChanging(value);
                this.SendPropertyChanging();
                this._EventTime = value;
                this.SendPropertyChanged("EventTime");
                this.OnEventTimeChanged();
		    }
		}
		
        partial void OnEventTypeChanging(string value);
        partial void OnEventTypeChanged();
		
		private string _EventType;
		public string EventType { 
		    get{
		        return _EventType;
		    } 
		    set{
		        this.OnEventTypeChanging(value);
                this.SendPropertyChanging();
                this._EventType = value;
                this.SendPropertyChanged("EventType");
                this.OnEventTypeChanged();
		    }
		}
		
        partial void OnEventSequenceChanging(decimal value);
        partial void OnEventSequenceChanged();
		
		private decimal _EventSequence;
		public decimal EventSequence { 
		    get{
		        return _EventSequence;
		    } 
		    set{
		        this.OnEventSequenceChanging(value);
                this.SendPropertyChanging();
                this._EventSequence = value;
                this.SendPropertyChanged("EventSequence");
                this.OnEventSequenceChanged();
		    }
		}
		
        partial void OnEventOccurrenceChanging(decimal value);
        partial void OnEventOccurrenceChanged();
		
		private decimal _EventOccurrence;
		public decimal EventOccurrence { 
		    get{
		        return _EventOccurrence;
		    } 
		    set{
		        this.OnEventOccurrenceChanging(value);
                this.SendPropertyChanging();
                this._EventOccurrence = value;
                this.SendPropertyChanged("EventOccurrence");
                this.OnEventOccurrenceChanged();
		    }
		}
		
        partial void OnEventCodeChanging(int value);
        partial void OnEventCodeChanged();
		
		private int _EventCode;
		public int EventCode { 
		    get{
		        return _EventCode;
		    } 
		    set{
		        this.OnEventCodeChanging(value);
                this.SendPropertyChanging();
                this._EventCode = value;
                this.SendPropertyChanged("EventCode");
                this.OnEventCodeChanged();
		    }
		}
		
        partial void OnEventDetailCodeChanging(int value);
        partial void OnEventDetailCodeChanged();
		
		private int _EventDetailCode;
		public int EventDetailCode { 
		    get{
		        return _EventDetailCode;
		    } 
		    set{
		        this.OnEventDetailCodeChanging(value);
                this.SendPropertyChanging();
                this._EventDetailCode = value;
                this.SendPropertyChanged("EventDetailCode");
                this.OnEventDetailCodeChanged();
		    }
		}
		
        partial void OnMessageChanging(string value);
        partial void OnMessageChanged();
		
		private string _Message;
		public string Message { 
		    get{
		        return _Message;
		    } 
		    set{
		        this.OnMessageChanging(value);
                this.SendPropertyChanging();
                this._Message = value;
                this.SendPropertyChanged("Message");
                this.OnMessageChanged();
		    }
		}
		
        partial void OnApplicationPathChanging(string value);
        partial void OnApplicationPathChanged();
		
		private string _ApplicationPath;
		public string ApplicationPath { 
		    get{
		        return _ApplicationPath;
		    } 
		    set{
		        this.OnApplicationPathChanging(value);
                this.SendPropertyChanging();
                this._ApplicationPath = value;
                this.SendPropertyChanged("ApplicationPath");
                this.OnApplicationPathChanged();
		    }
		}
		
        partial void OnApplicationVirtualPathChanging(string value);
        partial void OnApplicationVirtualPathChanged();
		
		private string _ApplicationVirtualPath;
		public string ApplicationVirtualPath { 
		    get{
		        return _ApplicationVirtualPath;
		    } 
		    set{
		        this.OnApplicationVirtualPathChanging(value);
                this.SendPropertyChanging();
                this._ApplicationVirtualPath = value;
                this.SendPropertyChanged("ApplicationVirtualPath");
                this.OnApplicationVirtualPathChanged();
		    }
		}
		
        partial void OnMachineNameChanging(string value);
        partial void OnMachineNameChanged();
		
		private string _MachineName;
		public string MachineName { 
		    get{
		        return _MachineName;
		    } 
		    set{
		        this.OnMachineNameChanging(value);
                this.SendPropertyChanging();
                this._MachineName = value;
                this.SendPropertyChanged("MachineName");
                this.OnMachineNameChanged();
		    }
		}
		
        partial void OnRequestUrlChanging(string value);
        partial void OnRequestUrlChanged();
		
		private string _RequestUrl;
		public string RequestUrl { 
		    get{
		        return _RequestUrl;
		    } 
		    set{
		        this.OnRequestUrlChanging(value);
                this.SendPropertyChanging();
                this._RequestUrl = value;
                this.SendPropertyChanged("RequestUrl");
                this.OnRequestUrlChanged();
		    }
		}
		
        partial void OnExceptionTypeChanging(string value);
        partial void OnExceptionTypeChanged();
		
		private string _ExceptionType;
		public string ExceptionType { 
		    get{
		        return _ExceptionType;
		    } 
		    set{
		        this.OnExceptionTypeChanging(value);
                this.SendPropertyChanging();
                this._ExceptionType = value;
                this.SendPropertyChanged("ExceptionType");
                this.OnExceptionTypeChanged();
		    }
		}
		
        partial void OnDetailsChanging(string value);
        partial void OnDetailsChanged();
		
		private string _Details;
		public string Details { 
		    get{
		        return _Details;
		    } 
		    set{
		        this.OnDetailsChanging(value);
                this.SendPropertyChanging();
                this._Details = value;
                this.SendPropertyChanged("Details");
                this.OnDetailsChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the HelpText table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.HelpText 
    /// </summary>

	public partial class HelpText: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public HelpText(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnHelpTextIDChanging(int value);
        partial void OnHelpTextIDChanged();
		
		private int _HelpTextID;
		public int HelpTextID { 
		    get{
		        return _HelpTextID;
		    } 
		    set{
		        this.OnHelpTextIDChanging(value);
                this.SendPropertyChanging();
                this._HelpTextID = value;
                this.SendPropertyChanged("HelpTextID");
                this.OnHelpTextIDChanged();
		    }
		}
		
        partial void OnHeaderChanging(string value);
        partial void OnHeaderChanged();
		
		private string _Header;
		public string Header { 
		    get{
		        return _Header;
		    } 
		    set{
		        this.OnHeaderChanging(value);
                this.SendPropertyChanging();
                this._Header = value;
                this.SendPropertyChanged("Header");
                this.OnHeaderChanged();
		    }
		}
		
        partial void OnDescriptionChanging(string value);
        partial void OnDescriptionChanged();
		
		private string _Description;
		public string Description { 
		    get{
		        return _Description;
		    } 
		    set{
		        this.OnDescriptionChanging(value);
                this.SendPropertyChanging();
                this._Description = value;
                this.SendPropertyChanged("Description");
                this.OnDescriptionChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the ControlType table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.ControlType 
    /// </summary>

	public partial class ControlType: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public ControlType(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnControlTypeIDChanging(int value);
        partial void OnControlTypeIDChanged();
		
		private int _ControlTypeID;
		public int ControlTypeID { 
		    get{
		        return _ControlTypeID;
		    } 
		    set{
		        this.OnControlTypeIDChanging(value);
                this.SendPropertyChanging();
                this._ControlTypeID = value;
                this.SendPropertyChanged("ControlTypeID");
                this.OnControlTypeIDChanged();
		    }
		}
		
        partial void OnControlTypeXChanging(string value);
        partial void OnControlTypeXChanged();
		
		private string _ControlTypeX;
		public string ControlTypeX { 
		    get{
		        return _ControlTypeX;
		    } 
		    set{
		        this.OnControlTypeXChanging(value);
                this.SendPropertyChanging();
                this._ControlTypeX = value;
                this.SendPropertyChanged("ControlTypeX");
                this.OnControlTypeXChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
    
    
    /// <summary>
    /// A class which represents the aspnet_Applications table in the CSC440DB Database.
    /// This class is queryable through CSC440DBDB.aspnet_Application 
    /// </summary>

	public partial class aspnet_Application: INotifyPropertyChanging, INotifyPropertyChanged
	{
        partial void OnLoaded();
        partial void OnValidate(System.Data.Linq.ChangeAction action);
        partial void OnCreated();
	    
	    public aspnet_Application(){
	        OnCreated();
	    }
	    
	    #region Properties
	    
        partial void OnApplicationNameChanging(string value);
        partial void OnApplicationNameChanged();
		
		private string _ApplicationName;
		public string ApplicationName { 
		    get{
		        return _ApplicationName;
		    } 
		    set{
		        this.OnApplicationNameChanging(value);
                this.SendPropertyChanging();
                this._ApplicationName = value;
                this.SendPropertyChanged("ApplicationName");
                this.OnApplicationNameChanged();
		    }
		}
		
        partial void OnLoweredApplicationNameChanging(string value);
        partial void OnLoweredApplicationNameChanged();
		
		private string _LoweredApplicationName;
		public string LoweredApplicationName { 
		    get{
		        return _LoweredApplicationName;
		    } 
		    set{
		        this.OnLoweredApplicationNameChanging(value);
                this.SendPropertyChanging();
                this._LoweredApplicationName = value;
                this.SendPropertyChanged("LoweredApplicationName");
                this.OnLoweredApplicationNameChanged();
		    }
		}
		
        partial void OnApplicationIdChanging(Guid value);
        partial void OnApplicationIdChanged();
		
		private Guid _ApplicationId;
		public Guid ApplicationId { 
		    get{
		        return _ApplicationId;
		    } 
		    set{
		        this.OnApplicationIdChanging(value);
                this.SendPropertyChanging();
                this._ApplicationId = value;
                this.SendPropertyChanged("ApplicationId");
                this.OnApplicationIdChanged();
		    }
		}
		
        partial void OnDescriptionChanging(string value);
        partial void OnDescriptionChanged();
		
		private string _Description;
		public string Description { 
		    get{
		        return _Description;
		    } 
		    set{
		        this.OnDescriptionChanging(value);
                this.SendPropertyChanging();
                this._Description = value;
                this.SendPropertyChanged("Description");
                this.OnDescriptionChanged();
		    }
		}
		

        #endregion

        #region Foreign Keys
        public IQueryable<aspnet_Membership> aspnet_Memberships
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Memberships
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_Path> aspnet_Paths
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Paths
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_Role> aspnet_Roles
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Roles
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        public IQueryable<aspnet_User> aspnet_Users
        {
            get
            {
                  var db=new CSC440TeamOne.CSC440BusinessService.SubSonic.CSC440DBDB();
                  return from items in db.aspnet_Users
                       where items.ApplicationId == _ApplicationId
                       select items;
            }
        }

        #endregion


        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
        public event PropertyChangingEventHandler PropertyChanging;
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void SendPropertyChanging()
        {
            var handler = PropertyChanging;
            if (handler != null)
               handler(this, emptyChangingEventArgs);
        }

        protected virtual void SendPropertyChanged(String propertyName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propertyName));
        }

	}
	
}